package com.ruoyi.gather.api.domain;

import lombok.Data;

import java.util.List;

public class Aliexpress {
    @Data
    public static class AliexpressCategoryMap {
        String categoryId;
        String response;
    }
    @Data
    public static class AliexpressCategoryResponse {
        Result aliexpressCategoryRedefiningGetchildattributesresultbypostcateidandpathResponse;
    }
    @Data
    public static class Result {
        AliexpressCategoryResult result;
    }
    @Data
    public static class AliexpressCategoryResult {
        String errorMessage;
        Boolean success;
        String errorCode;
        Attributes attributes;
    }
    @Data
    public static class Attributes {
        List<AttributeDto> AeopAttributeDto;
    }
    @Data
    public static class AttributeDto {
        Boolean customizedName;
        Boolean visible;
        Boolean customizedPic;
        Boolean keyAttribute;
        AeopAttrValueDto values;
        String inputType;
        String attributeShowTypeValue;
        Boolean required;
        Long spec;
        String features;
        String names;
        Boolean supportEnumInput;
        Long id;
        Boolean sku;
    }
    @Data
    public static class AeopAttrValueDto {
        List<AttrValueDto> aeopAttrValueDto;
    }
    @Data
    public static class AttrValueDto {
        String names;
        Long id;
        Boolean hasSubAttr = false;
        String valueTags;
    }

    @Data
    public static class CategoryInfoVo {
        Long attr_name_id;
        String zhName;
        String attr_name;

        private String attributeShowTypeValue;
        private String required;
        private String sku;
        private Long spec;

        List<ValueVo> values;
    }
    @Data
    public static class ValueVo {
        Long attr_value_id;
        String zhName;
        String attr_value;
    }
}
